<?php


namespace app\index\controller;

use app\index\model\MsgDoc as MsgDocModel;
class Msgdoc extends Base
{
    public function get(){
        $user = new MsgDocModel();
        $data=$this->request->param();
        return $user->selectModel($data);
    }
    public function update()
    {
        $data = $this->request->param();
        $res = new MsgDocModel();
        return $res->updateModel($data);
    }
    public function delete(){
        $data = $this->request->param();
        $res = new MsgDocModel();
        return $res->deleteModel($data);
    }
    public function save(){
        $res = new MsgDocModel();
        $data = $this->request->param();
        $res->saveModel($data);
    }
}